package entity;

public class Product {
	private Integer id;
	private String proName;
	private String proDescription;
	private String type;
	private double proPrice;
	private Integer stock;
	private Integer satisfaction;
	private Integer status;
	private String mainImage;
	private String subImages;
	private String detail;
	private String food;
	private String route;

	public Product() {
		
	}
	/*新增*/
	public Product(String proName, String proDescription, String type, double proPrice, Integer stock,
			Integer satisfaction, String mainImage, String subImages, String detail,String food,String route) {
		super();
		this.proName = proName;
		this.proDescription = proDescription;
		this.type = type;
		this.proPrice = proPrice;
		this.stock = stock;
		this.satisfaction = satisfaction;
		this.mainImage = mainImage;
		this.subImages = subImages;
		this.detail = detail;
		this.food=food;
		this.route= route;
	}

	/*更新库存*/
	public Product(Integer id, String proName, String proDescription, String type, double proPrice, Integer stock,
			Integer satisfaction, Integer status,String mainImage,String subImages,String detail,String food,String route ) {
		super();
		this.id = id;
		this.proName = proName;
		this.proDescription = proDescription;
		this.type = type;
		this.proPrice = proPrice;
		this.stock = stock;
		this.satisfaction = satisfaction;
		this.status = status;
		this.mainImage=mainImage;
		this.subImages=subImages;
		this.detail=detail;
		this.food=food;
		this.route=route;
	}
	
	public String getRoute() {
		return route;
	}
	public void setRoute(String route) {
		this.route = route;
	}
	public String getFood() {
		return food;
	}
	public void setFood(String food) {
		this.food = food;
	}
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getProName() {
		return proName;
	}

	public void setProName(String proName) {
		this.proName = proName;
	}

	public String getProDescription() {
		return proDescription;
	}

	public void setProDescription(String proDescription) {
		this.proDescription = proDescription;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public double getProPrice() {
		return proPrice;
	}

	public void setProPrice(double proPrice) {
		this.proPrice = proPrice;
	}

	public Integer getStock() {
		return stock;
	}

	public void setStock(Integer stock) {
		this.stock = stock;
	}

	public Integer getSatisfaction() {
		return satisfaction;
	}

	public void setSatisfaction(Integer satisfaction) {
		this.satisfaction = satisfaction;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getMainImage() {
		return mainImage;
	}

	public void setMainImage(String mainImage) {
		this.mainImage = mainImage;
	}

	public String getSubImages() {
		return subImages;
	}

	public void setSubImages(String subImages) {
		this.subImages = subImages;
	}

	public String getDetail() {
		return detail;
	}

	public void setDetail(String detail) {
		this.detail = detail;
	}
	@Override
	public String toString() {
		return "Product [id=" + id + ", proName=" + proName + ", proDescription=" + proDescription + ", type=" + type
				+ ", proPrice=" + proPrice + ", stock=" + stock + ", satisfaction=" + satisfaction + ", status="
				+ status + ", mainImage=" + mainImage + ", subImages=" + subImages + ", detail=" + detail + ", food="
				+ food + ", route=" + route + "]";
	}
	
	
}
